/*
 * @Author: cl
 * @Description: 
 * @Date: 2023-05-06 17:28:45
 * @LastEditTime: 2023-05-06 17:51:17
 * @FilePath: \jsnode\nestjs\naota\prisma\seeds\category.ts
 * @LastEditors: cl
 */
import { PrismaClient } from '@prisma/client'
import {initMock} from '../help'
import { Random } from 'mockjs'


export function createCategory(){
    initMock(5,async (prisma:PrismaClient)=>{
        await prisma.category.create({
            data: {
                title: Random.ctitle(),
            }
          })
    })
}